package com.esixnetwork.apollo.front.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * 静态页面模板控制层
 */
@Controller
@Slf4j
public class PageController {

    /**
     * 首页
     */
    @RequestMapping(value = "/index")
    public String index() {
        log.info("请求-首页");
        return "index";
    }

    /**
     * 登录页面
     */
    @RequestMapping(value = "/login")
    public String login(){
        log.info("请求-登录页面");
        return "user/login";
    }

    /**
     * 会话管理
     */
    @RequestMapping(value = "/session")
    public String sessionManager(){
        log.info("请求-会话管理页面");
        return "session/index";
    }

    /**
     * 发包器
     */
    @RequestMapping(value = "/probe/send")
    public String sendPackage(){
        log.info("请求-发包器页面");
        return "probe/send";
    }

    /**
     * 反弹器
     */
    @RequestMapping(value = "/probe/rebound")
    public String reboundPackage(){
        log.info("请求-反弹器页面");
        return "probe/rebound";
    }

    /**
     * 模板
     */
    @RequestMapping(value = "/probe/template")
    public String probeTemplate(){
        log.info("请求-模板页面");
        return "probe/template";
    }

    /**
     * 账号管理
     */
    @RequestMapping(value = "/system/account")
    public String accountManager(){
        log.info("请求-账号管理页面");
        return "system/account";
    }

    /**
     * 导入导出
     */
    @RequestMapping(value = "/system/io")
    public String ioManager(){
        log.info("请求-导入导出页面");
        return "system/io";
    }
}

